package com.campus.backend.bean.banner;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 创建轮播图Bean
 *
 * @author campus
 * @since 2024-01-01
 */
@Data
@ApiModel(value = "创建轮播图Bean", description = "创建轮播图Bean")
public class CreateBannerBean {

    @ApiModelProperty(value = "轮播图类型", required = true)
    @NotNull(message = "轮播图类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "图片地址", required = true)
    @NotBlank(message = "图片地址不能为空")
    private String image;

    @ApiModelProperty(value = "链接地址")
    private String link;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "状态")
    private Integer status;
}